<?php 
$_SESSION['Category']=$_POST['Category'];
$_SESSION['subcat']=$_POST['subcat'];
$_SESSION['currency']=$_POST['currency'];
$_SESSION['location']=$_POST['location'];
$_SESSION['worktype']=$_POST['worktype'];
$_SESSION['salary']=$_POST['salary'];
$_SESSION['saltype']=$_POST['saltype'];

$sql1="SELECT zone_name from zone where id='".$_SESSION['location']."'";
$sql1=mysql_query($sql1);
$tech=mysql_fetch_array($sql1);
$zname = $tech[zone_name];

if ($_SESSION['user_id']=="")
{
	$redirect_page = 'logon&view=post_job_now';
}
else
{
	$redirect_page = 'logon&view=post_job_now';
}

?>
<div class="mainWarpArea">
    <!-- Begin contentwarp -->
    <div class="contentwarp">
      <div id="register" style="background-color:#FFF;float:left;width:740px;border:0px solid #CCC; padding-left:100px;">
        <!-- Begin ContentBox -->
  <h2 style="padding-left: 20px;" class="classifiedstitle"></h2>

  <table width="100%" align="center" border="0" cellpadding="0" cellspacing="0">
    <tbody>
    <tr>
      <td valign="middle" align="center">
      <fieldset class="borders" style="width: 600px;">
    <legend class="gray12">›Upgrade your Ad for greater Impact‹</legend>
    <table width="99%" align="center" class="font12">
    <tbody>
      <tr height="35px" class="font12">
        <td valign="middle" align="left" colspan="3">
        <div style="border:#666 solid 0px; width:730px; min-height:150px;">
          <div align="center" style="margin-top:40px;">
            <table width="99%" align="center" class="font12">
              <tbody>
                <tr bgcolor="#E3E3E3">
                  <td height="22" colspan="3" align="left" valign="middle" class="font12"style="padding-left: 20px;"><b>Search results preview</b></td>
                </tr>
                <tr height="35px" class="font12">
                  <td valign="middle" align="left" colspan="3"> How your Ad will look as a Priority Listing at the top of the Search Results!
                    <div style="border:#666 solid 1px; width:720px; min-height:150px;">
                      <div align="center" style="margin-top:40px;">
                        <?php  echo '<a href="#">'.$_SESSION['searchtittle'].'</a><br>'.substr($_SESSION['summary'],0,20).'...<a href="#">more</a><br><span style="color:#939598">'.$zname.'| Listed by'.$_SESSION['cname'].'</span>';?>
                      </div>
                    </div></td>
                </tr>
                <tr bgcolor="#E3E3E3">
                  <td height="22" colspan="3" align="left" valign="middle" class="font12"style="padding-left: 20px;">Before you Post...
                    
                    Have a look at your ads and make sure everything is correct.</td>
                </tr>
                <tr height="35px">
                  <?php 
	   $sql="SELECT c.category,sc.sub_cat_name from job_category c inner join
			job_subcategory sc on c.id=sc.category_id where c.id='".$_SESSION['Category']."'";
	   $sql=mysql_query($sql);
	   $tech=mysql_fetch_array($sql);
	    $cat = $tech[category];
	   $cat .=','.$tech[sub_cat_name];	
	   ?>
                  <td valign="middle" align="left" colspan="3"><table width="100%" border="0">
                    <tr bgcolor="#E3E3E3">
                      <td height="22" colspan="2"><b>Your website ad<b></b></b></td>
                    </tr>
                    <tr bgcolor="#F3F3F3">
                      <td width="10%">Publication Dates </td>
                      <td><?php echo $_SESSION['cdate']; ?></td>
                    </tr>
                    <tr bgcolor="#F3F3F3">
                      <td width="10%">Sector &
                        Subsector </td>
                      <td><?php echo $cat;  ?></td>
                    </tr>
                    <tr>
                      <td width="30%">Salary </td>
                      <td>$<?php echo $_SESSION['salary'].'&nbsp;'.$_POST['saltype'];?></td>
                    </tr>
                    <tr bgcolor="#F3F3F3">
                      <td width="10%">Work Type </td>
                      <td><?php echo $_SESSION['worktype']; ?></td>
                    </tr>
                    <tr >
                      <td width="30%">Location </td>
                      <td><?php echo $zname;?></td>
                    </tr>
                    <tr bgcolor="#F3F3F3">
                      <td width="30%">Ad Placed By </td>
                      <td><?php echo $_SESSION['cname'];?></td>
                    </tr>
                  </table></td>
                </tr>
                <tr height="35">
                  <td colspan="2" valign="middle" align="left">
                  <input type="button" value="Back" onclick="history.go(-1)" class="buttonbg"/></td>
                  <td width="50%" align="right" valign="middle">
                  <input type="button" name="btn_submit" value="Finish" class="buttonbg" onclick="location.href='index.php?page=<?php echo $redirect_page;?>'"/></td>
                </tr>
              </tbody>
            </table>
          </div>
          </div></td>
      </tr>
    </tbody></table>
      </fieldset>
      </td>
    </tr>
    <tr>
      <td valign="middle" align="left">&nbsp;</td>
    </tr>
  </tbody></table>


      </div>      
      
     
      <!-- End contentwarp -->
       <?php include("includes/right_content.php");?>
      <div style="clear:both;"></div>
      
    </div>
    <!-- End mainWarpArea -->
  </div>